# -*- coding:utf-8 -*-

import sys
import os


path = __file__
projectPath = os.path.dirname(path)
os.chdir(projectPath)

def run_cmds(cmds):
    cmd = ""
    for c in cmds:
        cmd += (" " + c)
    print(cmd)
    r = os.system(cmd)
    return


def main():
    for i in range(1,10):
        cmds = ["echo","nohup","python3","/Users/wangjian/PythonWorkSpace/RedHat/ClientMain.py",str(i)]
        run_cmds(cmds)




if __name__ == '__main__':
    main()